* callproc.c (Fcall_process): Fix vfork portability problems.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Nov 2012 22:33:35 +0000 (14:33 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Nov 2012 22:33:35 +0000 (14:33 -0800)
commitf00a847593c5781bea1df440c290450fc64d28d4
tree02a275e1b21cd4d3e7048058c639ae1514abcc7d
parentc1858b5370614db65fd917d6eac971e87e6e9910
* callproc.c (Fcall_process): Fix vfork portability problems.

Do not assume that fd[0], count, filefd, and save_environ survive
vfork.  Fix bug whereby wrong errno value could be reported for
pipe failure.  Some minor cleanups, too, as follows.  Move buf and
bufsize to the context where they're needed.  Change new_argv to
be of type char **, as this is more convenient and avoids casts.
(CALLPROC_BUFFER_SIZE_MIN, CALLPROC_BUFFER_SIZE_MAX):
Now local constants, not macros.
src/ChangeLog
src/callproc.c